﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NETMovie.UI.WebMVC.Models.SearchMovieViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Search


   
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% using (Html.BeginForm()) { %>
    <p>
     <%= Html.LabelFor(m => m.Category)%>
     <%= Html.DropDownListFor(m => m.Category, (IEnumerable<SelectListItem>)Session["Category"], "--select one--")%>
     </p>
     <p>
    
     <%= Html.LabelFor(m=>m.Title) %>
     <%= Html.TextBoxFor(m => m.Title) %>
     </p>
     <p>
        <%= Html.LabelFor(m=>m.Keyword) %>
     <%= Html.TextBoxFor(m => m.Keyword) %>
     </p>
     <p>
     <input type="submit" value="Search Movie" name="SearchMoviePageButton"/>
     </p>
       <input type="submit" value="Add Movie" name="SearchMoviePageButton" />

     <% Html.RenderPartial("SearchMovieResult", Model.Results); %>

<%} %>
</asp:Content>